Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly refresh and rebuild test project after .classpath change #261

Merged
merged 1 commit into from
Mar 20, 2025

Conversation

adangel
Copy link
Member

@adangel adangel commented Mar 6, 2025

This hopefully fixes spurious test failures, like this one:

ProjectPropertiesModelTest.testProjectClasspath:584 Found these URIs: [file:/usr/lib/jvm/temurin-21-jdk-amd64/lib/jrt-fs.jar, file:/home/runner/work/pmd-eclipse-plugin/pmd-eclipse-plugin/net.sourceforge.pmd.eclipse.plugin.test/target/work/data/ProjectPropertiesModelTest/bin/] expected: 6 but was: 2

E.g. happened in https://github.com/pmd/pmd-eclipse-plugin/actions/runs/13601379628
and in https://github.com/pmd/pmd-eclipse-plugin/actions/runs/13753871134/job/38458276451?pr=262

This hopefully fixes spurious test failures, like this one:

ProjectPropertiesModelTest.testProjectClasspath:584 Found these URIs:
[file:/usr/lib/jvm/temurin-21-jdk-amd64/lib/jrt-fs.jar,
file:/home/runner/work/pmd-eclipse-plugin/pmd-eclipse-plugin/net.sourceforge.pmd.eclipse.plugin.test/target/work/data/ProjectPropertiesModelTest/bin/]
expected: 6 but was: 2
@adangel adangel added this to the 7.12.0 milestone Mar 6, 2025
adangel added a commit that referenced this pull request Mar 20, 2025
adangel added a commit that referenced this pull request Mar 20, 2025
…261)

Merge pull request #261 from adangel:project-classpath-test
@adangel adangel merged commit ed31e0b into pmd:main Mar 20, 2025
6 checks passed
@adangel adangel deleted the project-classpath-test branch March 20, 2025 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant